﻿package com.obas.business.scriptmanagement.service
{
	import com.obas.business.common.vo.AtMessage;
	import com.obas.flex.common.proxy.DefaultServiceProxy;

	public class ParameterizedScriptManagementService extends DefaultServiceProxy
	{
    	private static const SERVICE_NAME:String = "parameterizedScriptManagementService";

  		public function ParameterizedScriptManagementService() {
     		super(SERVICE_NAME);
  		}

		/**
    */
		public function 
			/* flex: com.obas.model.business.TestcaseScript */ 
			/* java: com.obas.model.business.TestcaseScript */
		saveScript(
 			testcaseScriptId:Number  /* long */,
 			script:String  /* java.lang.String */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("saveScript", [testcaseScriptId, script], callback, context);
 		}

		/**
    */
		public function 
			/* flex: com.obas.business.common.vo.AtMessage */ 
			/* java: com.obas.business.common.vo.AtMessage */
		record(
 			atMessage:com.obas.business.common.vo.AtMessage  /* com.obas.business.common.vo.AtMessage */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("record", [atMessage], callback, context);
 		}

		/**
    */
		public function 
			/* flex: String */ 
			/* java: java.lang.String */
		prepareParameterizedScript(
 			parameterId:Number  /* long */,
 			testcaseScriptId:Number  /* long */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("prepareParameterizedScript", [parameterId, testcaseScriptId], callback, context);
 		}
	}
}